﻿using Entity;
using IRepository;
using IService;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Service
{
    public class TargetFormService : ITargetFormService
    {
        private readonly ITargetFormRepository _targetFormRepository;

        public TargetFormService(ITargetFormRepository targetFormRepository)
        {
            _targetFormRepository = targetFormRepository;
        }

        public List<TargetForm> GetAll()
        {
            return _targetFormRepository.GetAll();
        }

        public TargetForm GetById(int targetId)
        {
            return _targetFormRepository.GetById(targetId);
        }
    }
}
